 <?php
        /****
        * Function creates a connect to database.
        ****/
        function connect(){
            $mysqli = new mysqli("mysql.cs.orst.edu", "cs419_beverlya", "qXHYN3NmNXGZcTQQ", "cs419_beverlya");
            if ($mysqli->connect_errno) {
                echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
                exit();
            }
            return $mysqli;
        }
?>
